<template>
	<view>
		<span>
		    <template v-for="(dict, index) in this.getDictDatas2(type, value)">
		      <!-- 默认样式 -->
		      <span v-if="dict.colorType === 'default' || dict.colorType === '' || dict.colorType === undefined" :key="dict.value" :index="index"
		            :class="dict.cssClass">{{ dict.label }}</span>
		      <!-- Tag 样式 -->
					<u--text :type="dict.colorType" :text="dict.label"></u--text>
		    </template>
		  </span>
	</view>
</template>

<script>
	export default {
		name:"dict-tag",
		props: {
		  type: String,
		  value: [Number, String, Boolean, Array],
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">

</style>